package qldc.pm.qlktcsdldc.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan;

/**
 * The persistence interface for the danh muc so ban nganh_ truong cong dan service.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see DanhMucSoBanNganh_TruongCongDanPersistenceImpl
 * @see DanhMucSoBanNganh_TruongCongDanUtil
 * @generated
 */
public interface DanhMucSoBanNganh_TruongCongDanPersistence
    extends BasePersistence<DanhMucSoBanNganh_TruongCongDan> {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this interface directly. Always use {@link DanhMucSoBanNganh_TruongCongDanUtil} to access the danh muc so ban nganh_ truong cong dan persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
     */

    /**
    * Returns all the danh muc so ban nganh_ truong cong dans where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @return the matching danh muc so ban nganh_ truong cong dans
    * @throws SystemException if a system exception occurred
    */
    public java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan> findByIDQLKT_DanhMucSoBanNganh(
        long IDQLKT_DanhMucSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Returns a range of all the danh muc so ban nganh_ truong cong dans where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.qlktcsdldc.model.impl.DanhMucSoBanNganh_TruongCongDanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param start the lower bound of the range of danh muc so ban nganh_ truong cong dans
    * @param end the upper bound of the range of danh muc so ban nganh_ truong cong dans (not inclusive)
    * @return the range of matching danh muc so ban nganh_ truong cong dans
    * @throws SystemException if a system exception occurred
    */
    public java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan> findByIDQLKT_DanhMucSoBanNganh(
        long IDQLKT_DanhMucSoBanNganh, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Returns an ordered range of all the danh muc so ban nganh_ truong cong dans where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.qlktcsdldc.model.impl.DanhMucSoBanNganh_TruongCongDanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param start the lower bound of the range of danh muc so ban nganh_ truong cong dans
    * @param end the upper bound of the range of danh muc so ban nganh_ truong cong dans (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching danh muc so ban nganh_ truong cong dans
    * @throws SystemException if a system exception occurred
    */
    public java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan> findByIDQLKT_DanhMucSoBanNganh(
        long IDQLKT_DanhMucSoBanNganh, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Returns the first danh muc so ban nganh_ truong cong dan in the ordered set where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching danh muc so ban nganh_ truong cong dan
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganh_TruongCongDanException if a matching danh muc so ban nganh_ truong cong dan could not be found
    * @throws SystemException if a system exception occurred
    */
    public qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan findByIDQLKT_DanhMucSoBanNganh_First(
        long IDQLKT_DanhMucSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganh_TruongCongDanException;

    /**
    * Returns the first danh muc so ban nganh_ truong cong dan in the ordered set where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching danh muc so ban nganh_ truong cong dan, or <code>null</code> if a matching danh muc so ban nganh_ truong cong dan could not be found
    * @throws SystemException if a system exception occurred
    */
    public qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan fetchByIDQLKT_DanhMucSoBanNganh_First(
        long IDQLKT_DanhMucSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Returns the last danh muc so ban nganh_ truong cong dan in the ordered set where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching danh muc so ban nganh_ truong cong dan
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganh_TruongCongDanException if a matching danh muc so ban nganh_ truong cong dan could not be found
    * @throws SystemException if a system exception occurred
    */
    public qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan findByIDQLKT_DanhMucSoBanNganh_Last(
        long IDQLKT_DanhMucSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganh_TruongCongDanException;

    /**
    * Returns the last danh muc so ban nganh_ truong cong dan in the ordered set where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching danh muc so ban nganh_ truong cong dan, or <code>null</code> if a matching danh muc so ban nganh_ truong cong dan could not be found
    * @throws SystemException if a system exception occurred
    */
    public qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan fetchByIDQLKT_DanhMucSoBanNganh_Last(
        long IDQLKT_DanhMucSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Returns the danh muc so ban nganh_ truong cong dans before and after the current danh muc so ban nganh_ truong cong dan in the ordered set where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDDanhMucSoBanNganh_TruongCongDan the primary key of the current danh muc so ban nganh_ truong cong dan
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the previous, current, and next danh muc so ban nganh_ truong cong dan
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganh_TruongCongDanException if a danh muc so ban nganh_ truong cong dan with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan[] findByIDQLKT_DanhMucSoBanNganh_PrevAndNext(
        long IDDanhMucSoBanNganh_TruongCongDan, long IDQLKT_DanhMucSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganh_TruongCongDanException;

    /**
    * Removes all the danh muc so ban nganh_ truong cong dans where IDQLKT_DanhMucSoBanNganh = &#63; from the database.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @throws SystemException if a system exception occurred
    */
    public void removeByIDQLKT_DanhMucSoBanNganh(long IDQLKT_DanhMucSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Returns the number of danh muc so ban nganh_ truong cong dans where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @return the number of matching danh muc so ban nganh_ truong cong dans
    * @throws SystemException if a system exception occurred
    */
    public int countByIDQLKT_DanhMucSoBanNganh(long IDQLKT_DanhMucSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Caches the danh muc so ban nganh_ truong cong dan in the entity cache if it is enabled.
    *
    * @param danhMucSoBanNganh_TruongCongDan the danh muc so ban nganh_ truong cong dan
    */
    public void cacheResult(
        qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan danhMucSoBanNganh_TruongCongDan);

    /**
    * Caches the danh muc so ban nganh_ truong cong dans in the entity cache if it is enabled.
    *
    * @param danhMucSoBanNganh_TruongCongDans the danh muc so ban nganh_ truong cong dans
    */
    public void cacheResult(
        java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan> danhMucSoBanNganh_TruongCongDans);

    /**
    * Creates a new danh muc so ban nganh_ truong cong dan with the primary key. Does not add the danh muc so ban nganh_ truong cong dan to the database.
    *
    * @param IDDanhMucSoBanNganh_TruongCongDan the primary key for the new danh muc so ban nganh_ truong cong dan
    * @return the new danh muc so ban nganh_ truong cong dan
    */
    public qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan create(
        long IDDanhMucSoBanNganh_TruongCongDan);

    /**
    * Removes the danh muc so ban nganh_ truong cong dan with the primary key from the database. Also notifies the appropriate model listeners.
    *
    * @param IDDanhMucSoBanNganh_TruongCongDan the primary key of the danh muc so ban nganh_ truong cong dan
    * @return the danh muc so ban nganh_ truong cong dan that was removed
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganh_TruongCongDanException if a danh muc so ban nganh_ truong cong dan with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan remove(
        long IDDanhMucSoBanNganh_TruongCongDan)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganh_TruongCongDanException;

    public qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan updateImpl(
        qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan danhMucSoBanNganh_TruongCongDan)
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Returns the danh muc so ban nganh_ truong cong dan with the primary key or throws a {@link qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganh_TruongCongDanException} if it could not be found.
    *
    * @param IDDanhMucSoBanNganh_TruongCongDan the primary key of the danh muc so ban nganh_ truong cong dan
    * @return the danh muc so ban nganh_ truong cong dan
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganh_TruongCongDanException if a danh muc so ban nganh_ truong cong dan with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan findByPrimaryKey(
        long IDDanhMucSoBanNganh_TruongCongDan)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganh_TruongCongDanException;

    /**
    * Returns the danh muc so ban nganh_ truong cong dan with the primary key or returns <code>null</code> if it could not be found.
    *
    * @param IDDanhMucSoBanNganh_TruongCongDan the primary key of the danh muc so ban nganh_ truong cong dan
    * @return the danh muc so ban nganh_ truong cong dan, or <code>null</code> if a danh muc so ban nganh_ truong cong dan with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan fetchByPrimaryKey(
        long IDDanhMucSoBanNganh_TruongCongDan)
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Returns all the danh muc so ban nganh_ truong cong dans.
    *
    * @return the danh muc so ban nganh_ truong cong dans
    * @throws SystemException if a system exception occurred
    */
    public java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan> findAll()
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Returns a range of all the danh muc so ban nganh_ truong cong dans.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.qlktcsdldc.model.impl.DanhMucSoBanNganh_TruongCongDanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of danh muc so ban nganh_ truong cong dans
    * @param end the upper bound of the range of danh muc so ban nganh_ truong cong dans (not inclusive)
    * @return the range of danh muc so ban nganh_ truong cong dans
    * @throws SystemException if a system exception occurred
    */
    public java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan> findAll(
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Returns an ordered range of all the danh muc so ban nganh_ truong cong dans.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.qlktcsdldc.model.impl.DanhMucSoBanNganh_TruongCongDanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of danh muc so ban nganh_ truong cong dans
    * @param end the upper bound of the range of danh muc so ban nganh_ truong cong dans (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of danh muc so ban nganh_ truong cong dans
    * @throws SystemException if a system exception occurred
    */
    public java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh_TruongCongDan> findAll(
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Removes all the danh muc so ban nganh_ truong cong dans from the database.
    *
    * @throws SystemException if a system exception occurred
    */
    public void removeAll()
        throws com.liferay.portal.kernel.exception.SystemException;

    /**
    * Returns the number of danh muc so ban nganh_ truong cong dans.
    *
    * @return the number of danh muc so ban nganh_ truong cong dans
    * @throws SystemException if a system exception occurred
    */
    public int countAll()
        throws com.liferay.portal.kernel.exception.SystemException;
}
